/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package entityprojet;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Ron
 */
@Entity
@Table(name = "P_CATTARIF")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "PCattarif.findAll", query = "SELECT p FROM PCattarif p"),
    @NamedQuery(name = "PCattarif.findByCTIntitule", query = "SELECT p FROM PCattarif p WHERE p.cTIntitule = :cTIntitule"),
    @NamedQuery(name = "PCattarif.findByCTPrixTTC", query = "SELECT p FROM PCattarif p WHERE p.cTPrixTTC = :cTPrixTTC"),
    @NamedQuery(name = "PCattarif.findByCbIndice", query = "SELECT p FROM PCattarif p WHERE p.cbIndice = :cbIndice"),
    @NamedQuery(name = "PCattarif.findByCbMarq", query = "SELECT p FROM PCattarif p WHERE p.cbMarq = :cbMarq")})
public class PCattarif implements Serializable {
    private static final long serialVersionUID = 1L;
    @Column(name = "CT_Intitule")
    private String cTIntitule;
    @Column(name = "CT_PrixTTC")
    private Short cTPrixTTC;
    @Column(name = "cbIndice")
    private Short cbIndice;
    @Id
    @Basic(optional = false)
    @Column(name = "cbMarq")
    private Integer cbMarq;

    public PCattarif() {
    }

    public PCattarif(Integer cbMarq) {
        this.cbMarq = cbMarq;
    }

    public String getCTIntitule() {
        return cTIntitule;
    }

    public void setCTIntitule(String cTIntitule) {
        this.cTIntitule = cTIntitule;
    }

    public Short getCTPrixTTC() {
        return cTPrixTTC;
    }

    public void setCTPrixTTC(Short cTPrixTTC) {
        this.cTPrixTTC = cTPrixTTC;
    }

    public Short getCbIndice() {
        return cbIndice;
    }

    public void setCbIndice(Short cbIndice) {
        this.cbIndice = cbIndice;
    }

    public Integer getCbMarq() {
        return cbMarq;
    }

    public void setCbMarq(Integer cbMarq) {
        this.cbMarq = cbMarq;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (cbMarq != null ? cbMarq.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof PCattarif)) {
            return false;
        }
        PCattarif other = (PCattarif) object;
        if ((this.cbMarq == null && other.cbMarq != null) || (this.cbMarq != null && !this.cbMarq.equals(other.cbMarq))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entityprojet.PCattarif[ cbMarq=" + cbMarq + " ]";
    }
    
}
